﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

public class SceneUtil
{
    public SceneUtil() { }

    /// <summary>
    /// 获取玩家姓名
    /// </summary>
    public static string getName(SceneObject playerObj)
    {
        string name = "";
        if (playerObj.Type==ObjType.Player)
        {
            name = (string)playerObj.GetProperties("Name");
        }
        return name;
    }
    /// <summary>
    /// 获取帮派名字
    /// </summary>
    public static string getFamilyName(SceneObject playerObj)
    {
        string name = "";
        if (playerObj.Type == ObjType.Player)
        {
            name = (string)playerObj.GetProperties("GuildName");
        }
        return name;
    }
}